﻿<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="CopyMaster.aspx.vb" Inherits="CopyMaster" %>

<%@ Register Assembly="ISNet.WebUI.WebInput" Namespace="ISNet.WebUI.WebControls" TagPrefix="ISWebInput" %>

<%@ Register Assembly="ISNet.WebUI.WebTreeView" Namespace="ISNet.WebUI.WebTreeView" TagPrefix="ISWebTreeView" %>

<%@ Register Assembly="ISNet.WebUI.WebGrid" Namespace="ISNet.WebUI.WebGrid" TagPrefix="ISWebGrid" %>

<%@ Register Assembly="ISNet.WebUI.WebCombo" Namespace="ISNet.WebUI.WebCombo" TagPrefix="ISWebCombo" %>

<%@ Register Assembly="ISNet.WebUI.WebDesktop" Namespace="ISNet.WebUI.WebDesktop" TagPrefix="ISWebDesktop" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <link href="script/style.css" rel="stylesheet" />
    <script src="script/tinybox.js"></script>
    <script type="text/ecmascript">
        function Confirm() {
            if (confirm('ตรวจพบข้อมูล master ต้องการจะ delete master ทั้งหมดเพื่อ copy หรือไม่ ') == false) {
                return false
            }
            popupwait();
            var savebtn = document.getElementById("<%= SaveConfirm.ClientID%>");
            savebtn.click();
            return true;
        }
        function popupwait() {
            TINY.box.show({ iframe: 'loading.html', boxid: 'frameless', close: 0, width: 300, height: 260, fixed: false, maskid: 'lightmask', maskopacity: 40, closejs: function () { closeJS() } });
            var importbtn = document.getElementById("<%= SaveBtn.ClientID%>");
            importbtn.style.display = "none";
        }
    </script>
    <div style="float: left; width: 97%; border: solid; border-color: gray; border-width: 1px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; box-shadow: 5px 5px 5px #808080; text-align: right; padding: 5px 5px 5px 5px;">
        <div style="text-align: right; margin-top: 5px;">
            <div align="left" style="width: 600px; float: left">
                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>s
            </div>

            <div style="float: right;">

                <table>
                    <tr>
                        <td>Copy จากปี</td>
                        <td>
                            <asp:TextBox ID="FromYear" runat="server" Width="50px" Text="1" Style="text-align: center;"></asp:TextBox></td>

                        <td>ไปยังปี&nbsp;</td>
                        <td>
                            <asp:TextBox ID="ToYear" runat="server" Width="50px" Style="text-align: center;"></asp:TextBox></td>
                        <td>&nbsp;&nbsp;&nbsp;&nbsp;<asp:ImageButton ID="SaveBtn" runat="server" ImageUrl="Icons/save.jpg" ToolTip="Copy ข้อมูลตามปีที่ระบุ" OnClientClick="popupwait()" />
                            <div style="visibility:hidden;"><asp:Button ID="SaveConfirm" runat="server" Width="0px" /></div>
                        </td>
                    </tr>
                </table>

            </div>

        </div>
    </div>

    <asp:ScriptManager ID="Scriptmanager1" runat="server">
    </asp:ScriptManager>

    <div style="float: left; width: 100%">
    </div>
    <%= AlertText%>
    <%= ScriptText%>
</asp:Content>

